package homework.Demo2;

public class Test {
    public static void main(String[] args) {
        Punishment punishment = new Punishment("Hello World", 100);
        CopyRunnable copyRunnable = new CopyRunnable(punishment);

        Thread thread1 = new Thread(copyRunnable,"小明");
        Thread thread2 = new Thread(copyRunnable,"小王");

        thread1.start();
        thread2.start();
    }
}
